﻿<?php 
if(isset($_SESSION['config_template']))
{
	if($_SESSION['config_template']=='layoutmain_web1')
	{
		?>
		<div class="my-account">
					<h1><?php echo $this->text_title;?></h1>
					<div class="line"><hr></div>
					<br>
					<div class="box-account box-info" style="margin-top:20px;">
										<div class="box-head">
											<h2><?php echo $this->text_lguser;?></h2>
										</div>
										<div class="col2-set">
											<div class="col-1">
												<div class="box">
													<div class="box-title" style="height:30px;">
														<h3 style="float:left;"><?php echo $this->text_lguser;?></h3>
														<a style="margin-right:10px; float:right;" href="/account/changepass"><?php echo $this->text_pass;?></a>
													</div>
													<div class="box-content">
														<table style="width:100%;">
															<tr style="height:25px;">
																<td style="width:30%;"><strong><?php echo $this->text_avatar;?></strong></td>
																<td style="width:70%;"><img style="width:128px; height:128px; border:1px solid #e4e4e4" src="<?php if(isset($this->userLogin)) echo $this->userLogin['avatar'];?>"/></td>
															</tr>
															<tr style="height:25px;">
																<td ><strong><?php echo $this->text_username;?></strong></td>
																<td ><?php if(isset($this->userLogin)) echo $this->userLogin['user_name']?></td>
															</tr>
															<tr style="height:25px;">
																<td ><strong><?php echo $this->text_email;?></strong></td>
																<td ><?php if(isset($this->userLogin)) echo $this->userLogin['email']?></td>
															</tr>
														</table>
													</div>
												</div>
											</div>
											<div class="col-2" style="border-left:1px solid #e4e4e4; padding-left:18px;">
												<div class="box">
													<div class="box-title" style="height:30px;">
														<h3 style="float:left;"><?php echo $this->text_lgprofile;?></h3>
														<a style="margin-right:10px; float:right;" href="/account/changeprofile"><?php echo $this->text_profile;?></a>
													</div>
													<div class="box-content">
														<table style="width:100%;">
															<tr style="height:25px;">
																<td style="width:30%;"><strong><?php echo $this->text_name;?></strong></td>
																<td style="width:70%;"><?php if(isset($this->userLogin)) echo $this->userLogin['full_name']?></td>
															</tr>
															<tr style="height:25px;">
																<td ><strong><?php echo $this->text_sex;?></strong></td>
																<td ><?php if(isset($this->userLogin)){
					                                    			if($this->userLogin['sex']==1)
					                                    				echo $this->text_sex1;
					                                    			else{
					                                    				if($this->userLogin['sex']==0)
					                                    					echo $this->text_sex0;
					                                    				else
					                                    					echo "(".$this->text_noinfo.")";
					                                    			}
					                                    		}?></td>
															</tr>
															<tr style="height:25px;">
																<td ><strong><?php echo $this->text_birthday;?></strong></td>
																<td ><?php if(isset($this->birthday)) echo $this->birthday?></td>
															</tr>
															<tr style="height:25px;">
																<td ><strong><?php echo $this->text_address;?></strong></td>
																<td ><?php if(isset($this->userLogin)){
					                                    			if($this->userLogin['address']=="")
					                                    				echo "(".$this->text_noinfo.")";
					                                    			else
					                                    				echo $this->userLogin['address'];
					                                    		}
					                                    		?></td>
															</tr>
															<tr style="height:25px;">
																<td ><strong><?php echo $this->text_career;?></strong></td>
																<td ><?php if(isset($this->userLogin)){
					                                    			if($this->userLogin['career']=="")
					                                    				echo "(".$this->text_noinfo.")";
					                                    			else
					                                    				echo $this->userLogin['career'];
					                                    		}
					                                    		?></td>
															</tr>
															<tr style="height:25px;">
																<td ><strong><?php echo $this->text_phone;?></strong></td>
																<td ><?php if(isset($this->userLogin)){
					                                    			if($this->userLogin['phone']=="")
					                                    				echo "(".$this->text_noinfo.")";
					                                    			else
					                                    				echo $this->userLogin['phone'];
					                                    		}
					                                    		?></td>
															</tr>
															<tr style="height:25px;">
																<td ><strong><?php echo $this->text_yahoo;?></strong></td>
																<td ><?php if(isset($this->userLogin)){
					                                    			if($this->userLogin['yahoo']=="")
					                                    				echo "(".$this->text_noinfo.")";
					                                    			else
					                                    				echo $this->userLogin['yahoo'];
					                                    		}
					                                    		?></td>
															</tr>
															<tr style="height:25px;">
																<td ><strong><?php echo $this->text_skype;?></strong></td>
																<td ><?php if(isset($this->userLogin)){
					                                    			if($this->userLogin['skype']=="")
					                                    				echo "(".$this->text_noinfo.")";
					                                    			else
					                                    				echo $this->userLogin['skype'];
					                                    		}
					                                    		?></td>
															</tr>
														</table>
													</div>
												</div>
											</div>
										</div>
										
									</div>
									<div class="box-account">
										<div class="box-head">
											<a href="/account/historyorder"><?php echo $this->text_hisorder;?></a>    
										</div>
									</div>
                </div>
		<?php 
	}
	else 
	{
		if($_SESSION['config_template']=='layoutmain_web2')
		{ ?>
			
			<div id="main" class="col-main">
						<div class="my-account">
								<div class="dashboard">
									<div class="page-title">
										<h1><?php echo $this->text_title;?></h1>
									</div>
								
									<div class="box-account box-info">
										<div class="box-head">
											<h2><?php echo $this->text_lguser;?> - <a href="/account/historyorder"><?php echo $this->text_hisorder;?></a></h2>
										</div>
										<div class="col2-set">
											<div class="col-1">
												<div class="box">
													<div class="box-title">
														<h3><?php echo $this->text_lguser;?></h3>
														<a href="/account/changepass"><?php echo $this->text_pass;?></a>
													</div>
													<div class="box-content">
														<table style="width:100%;">
															<tr style="height:25px;">
																<td style="width:30%;"><strong><?php echo $this->text_avatar;?></strong></td>
																<td style="width:70%;"><img style="width:128px; height:128px; border:1px solid #e4e4e4" src="<?php if(isset($this->userLogin)) echo $this->userLogin['avatar'];?>"/></td>
															</tr>
															<tr style="height:25px;">
																<td ><strong><?php echo $this->text_username;?></strong></td>
																<td ><?php if(isset($this->userLogin)) echo $this->userLogin['user_name']?></td>
															</tr>
															<tr style="height:25px;">
																<td ><strong><?php echo $this->text_email;?></strong></td>
																<td ><?php if(isset($this->userLogin)) echo $this->userLogin['email']?></td>
															</tr>
														</table>
													</div>
												</div>
											</div>
											<div class="col-2" style="border-left:1px solid #e4e4e4; padding-left:20px;">
												<div class="box">
													<div class="box-title">
														<h3><?php echo $this->text_lgprofile;?></h3>
														<a href="/account/changeprofile"><?php echo $this->text_profile;?></a>
													</div>
													<div class="box-content">
														<table style="width:100%;">
															<tr style="height:25px;">
																<td style="width:30%;"><strong><?php echo $this->text_name;?></strong></td>
																<td style="width:70%;"><?php if(isset($this->userLogin)) echo $this->userLogin['full_name']?></td>
															</tr>
															<tr style="height:25px;">
																<td ><strong><?php echo $this->text_sex;?></strong></td>
																<td ><?php if(isset($this->userLogin)){
					                                    			if($this->userLogin['sex']==1)
					                                    				echo $this->text_sex1;
					                                    			else{
					                                    				if($this->userLogin['sex']==0)
					                                    					echo $this->text_sex0;
					                                    				else
					                                    					echo "(".$this->text_noinfo.")";
					                                    			}
					                                    		}?></td>
															</tr>
															<tr style="height:25px;">
																<td ><strong><?php echo $this->text_birthday;?></strong></td>
																<td ><?php if(isset($this->birthday)) echo $this->birthday?></td>
															</tr>
															<tr style="height:25px;">
																<td ><strong><?php echo $this->text_address;?></strong></td>
																<td ><?php if(isset($this->userLogin)){
					                                    			if($this->userLogin['address']=="")
					                                    				echo "(".$this->text_noinfo.")";
					                                    			else
					                                    				echo $this->userLogin['address'];
					                                    		}
					                                    		?></td>
															</tr>
															<tr style="height:25px;">
																<td ><strong><?php echo $this->text_career;?></strong></td>
																<td ><?php if(isset($this->userLogin)){
					                                    			if($this->userLogin['career']=="")
					                                    				echo "(".$this->text_noinfo.")";
					                                    			else
					                                    				echo $this->userLogin['career'];
					                                    		}
					                                    		?></td>
															</tr>
															<tr style="height:25px;">
																<td ><strong><?php echo $this->text_phone;?></strong></td>
																<td ><?php if(isset($this->userLogin)){
					                                    			if($this->userLogin['phone']=="")
					                                    				echo "(".$this->text_noinfo.")";
					                                    			else
					                                    				echo $this->userLogin['phone'];
					                                    		}
					                                    		?></td>
															</tr>
															<tr style="height:25px;">
																<td ><strong><?php echo $this->text_yahoo;?></strong></td>
																<td ><?php if(isset($this->userLogin)){
					                                    			if($this->userLogin['yahoo']=="")
					                                    				echo "(".$this->text_noinfo.")";
					                                    			else
					                                    				echo $this->userLogin['yahoo'];
					                                    		}
					                                    		?></td>
															</tr>
															<tr style="height:25px;">
																<td ><strong><?php echo $this->text_skype;?></strong></td>
																<td ><?php if(isset($this->userLogin)){
					                                    			if($this->userLogin['skype']=="")
					                                    				echo "(".$this->text_noinfo.")";
					                                    			else
					                                    				echo $this->userLogin['skype'];
					                                    		}
					                                    		?></td>
															</tr>
														</table>
													</div>
												</div>
											</div>
										</div>
										
									</div>
								</div>
							</div>
					
					
					</div>
			
		<?php }
		else 
		{?>

<link rel="stylesheet" type="text/css" href="/css/userStyle.css" />
				<p><?php echo $this->text_title;?></p>
				<div class="line"><hr></div>
				<div style="clear:both;"></div>
				<div id="contentUser">
					<div id="contentAccount">
						<div id="grayfield">
							<div id="redContent"><?php echo $this->text_lguser;?></div>
							<div id="linkContent"><a href="/account/changepass"><?php echo $this->text_pass;?></a></div>
						</div>
						<div id="tableLayout">
                            <table width="318px;" >
                            	<tr>
                                	<td class="label"><p class="labeltxt"><?php echo $this->text_avatar;?></p></td>
                                    <td class="td_star"></td>
                                    <td class="txtInput" colspan="2">
                                    	<div id="avatar">
                                    		<img alt="" src="<?php if(isset($this->userLogin)) echo $this->userLogin['avatar'];?>" style="max-width:100px; max-height:100px;">
                                    	</div>
                                    </td>
                        		</tr>
                            	<tr>
                                	<td class="label"><p class="labeltxt"><?php echo $this->text_username;?></p></td>
                                    <td class="td_star"></td>
                                    <td class="txtInput" colspan="2">
                                    	<strong class="informShow"><?php if(isset($this->userLogin)) echo $this->userLogin['user_name']?></strong>
                                    </td>
                        		</tr>
                        		<!-- 
                                <tr>
                                	<td class="label"><p class="labeltxt">Mật khẩu</p></td>
                                    <td class="td_star"></td>
                                    <td class="txtInput">
                                    	<strong class="informShow">************</strong>
                                    </td>
                                    <td class="outputError" id="alertPass">
                                    </td>
                                </tr>
                                 -->
                                <tr>
                                	<td class="label"><p class="labeltxt"><?php echo $this->text_email;?></p></td>
                                    <td class="td_star"></td>
                                    <td class="txtInput" colspan="2">
                                    	<strong class="informShow"><?php if(isset($this->userLogin)) echo $this->userLogin['email']?></strong>
                                    </td>
                                </tr>
                                
                        	</table>
						</div>
						<div id="grayfield" style="margin-top:30px;">
							<div id="linkContent"><a href="/account/historyorder"><?php echo $this->text_hisorder;?></a></div>
						</div>
					</div>
					
					<div id="contentAccount" style="margin-left:16px;">
						<div id="grayfield">
							<div id="redContent"><?php echo $this->text_lgprofile;?></div>
							<div id="linkContent"><a href="/account/changeprofile"><?php echo $this->text_profile;?></a></div>
						</div>
						<div id="tableLayout">
							<table width="318px">
                            	<tr>
                                	<td class="label"><p class="labeltxt"><?php echo $this->text_name;?></p></td>
                                    <td class="td_star"></td>
                                    <td class="txtInput" colspan="2">
                                    	<strong class="informShow"><?php if(isset($this->userLogin)) echo $this->userLogin['full_name']?></strong>
                                    </td>
                        		</tr>
                                <tr>
                                	<td class="label"><p class="labeltxt"><?php echo $this->text_sex;?></p></td>
                                    <td class="td_star"></td>
                                    <td class="txtInput">
                                    	<strong class="informShow">
                                    		<?php if(isset($this->userLogin)){
                                    			if($this->userLogin['sex']==1)
                                    				echo $this->text_sex1;
                                    			else{
                                    				if($this->userLogin['sex']==0)
                                    					echo $this->text_sex0;
                                    				else
                                    					echo "(".$this->text_noinfo.")";
                                    			}
                                    		}?>
                                    	</strong>
                                    </td>
                                    <td class="outputError" id="alertSex">
                                    </td>
                                </tr>
                                <tr>
                                	<td class="label"><p class="labeltxt"><?php echo $this->text_birthday;?></p></td>
                                    <td class="td_star"></td>
                                    <td class="txtInput">
                                    	<strong class="informShow"><?php if(isset($this->birthday)) echo $this->birthday?></strong>
                                    </td>
                                    <td class="outputError" id="alertBirthday">
                                    </td>
                                </tr>
                                <tr>
                                	<td class="label"><p class="labeltxt"><?php echo $this->text_address;?></p></td>
                                	<td></td>
                                    <td class="txtInput"  colspan="2">
                                    	<strong class="informShow">
                                    		<?php if(isset($this->userLogin)){
                                    			if($this->userLogin['address']=="")
                                    				echo "(".$this->text_noinfo.")";
                                    			else
                                    				echo $this->userLogin['address'];
                                    		}
                                    		?>
                                    	</strong>
                                    </td>
                                </tr>
                                <tr>
                                	<td class="label"><p class="labeltxt"><?php echo $this->text_career;?></p></td>
                                    <td></td>
                                    <td class="txtInput"  colspan="2">
                                    	<strong class="informShow">
                                    		<?php if(isset($this->userLogin)){
                                    			if($this->userLogin['career']=="")
                                    				echo "(".$this->text_noinfo.")";
                                    			else
                                    				echo $this->userLogin['career'];
                                    		}
                                    		?>
                                    	</strong>
                                    </td>
                                </tr>
                                <tr>
                                	<td class="label"><p class="labeltxt"><?php echo $this->text_phone;?></p></td>
                                    <td class="td_star"></td>
                                    <td class="txtInput"  colspan="2">
                                   		<strong class="informShow">
                                    		<?php if(isset($this->userLogin)){
                                    			if($this->userLogin['phone']=="")
                                    				echo "(".$this->text_noinfo.")";
                                    			else
                                    				echo $this->userLogin['phone'];
                                    		}
                                    		?>
                                    	</strong>
                                   	</td>
                        		</tr>
                                <tr>
                                	<td class="label"><p class="labeltxt"><?php echo $this->text_yahoo;?></p></td>
                                    <td class="td_star"></td>
                                    <td class="txtInput"  colspan="2">
                                    	<strong class="informShow">
                                    		<?php if(isset($this->userLogin)){
                                    			if($this->userLogin['yahoo']=="")
                                    				echo "(".$this->text_noinfo.")";
                                    			else
                                    				echo $this->userLogin['yahoo'];
                                    		}
                                    		?>
                                    	</strong>
                                    </td>
                        		</tr>
                        		<tr>
                                	<td class="label"><p class="labeltxt"><?php echo $this->text_skype;?></p></td>
                                    <td class="td_star"></td>
                                    <td class="txtInput"  colspan="2">
                                    	<strong class="informShow">
                                    		<?php if(isset($this->userLogin)){
                                    			if($this->userLogin['skype']=="")
                                    				echo "(".$this->text_noinfo.")";
                                    			else
                                    				echo $this->userLogin['skype'];
                                    		}
                                    		?>
                                    	</strong>
                                    </td>
                        		</tr>
                        	</table>
						</div>
					</div>
                </div>
                <div style="clear: both;"></div>
    <?php }
	}
}?>
